﻿using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Presentation.Seedwork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.SystemModule
{
    public class CustomerViewModel : EntityModel<Customer, string, CustomerSearch>, ICustomerViewModel
    {
        public string CityID { get; set; }
        public string ProvinceID { get; set; }
        public int EmployeeRole { get; set; }
        public int PayType { get; set; }
        public int Nature { get; set; }
        public int AgentType { get; set; }
        public int InvoiceType { get; set; }
        public string Purpose { get; set; }
        public string NoPrefixId { get; set; }
        public string Status { get; set; }
    }

    public class CustomerJson : BaseJson<string>
    {
        public bool IsSelected { get; set; }
        public string Name { get; set; }
        public string AgentType { get; set; }
        public string Area { get; set; }
        public string Contact { get; set; }
        public string PayType { get; set; }
        public string PayDay { get; set; }
        public decimal CreditLimit { get; set; }
        public string InvoiceType { get; set; }
        public bool Status { get; set; }
    }

    public class CustomerJsonViewModel : JsonViewModel<CustomerJson>
    {

    }
}
